package org.anyin.gitee.cloud.center.upms.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.anyin.gitee.cloud.center.upms.controller.form.SysRoleSaveForm;
import org.anyin.gitee.cloud.center.upms.model.SysRole;
import org.anyin.gitee.cloud.center.upms.service.dto.SysRoleInfoDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysRoleSaveDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface SysRoleConvert {

    SysRoleSaveDTO getSysRoleSaveDTO(SysRoleSaveForm form);

    Page<SysRoleInfoDTO> getSysRolePageDTO(Page<SysRole> page);

}
